/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2022 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f7xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define VDD_3V3_SENSORS_EN_Pin GPIO_PIN_3
#define VDD_3V3_SENSORS_EN_GPIO_Port GPIOE
#define UART8_TX_Pin GPIO_PIN_1
#define UART8_TX_GPIO_Port GPIOE
#define UART8_RX_Pin GPIO_PIN_0
#define UART8_RX_GPIO_Port GPIOE
#define I2C1_SCL_Pin GPIO_PIN_8
#define I2C1_SCL_GPIO_Port GPIOB
#define DRDY1_ICM20689_Pin GPIO_PIN_4
#define DRDY1_ICM20689_GPIO_Port GPIOB
#define FMU_CAP2_Pin GPIO_PIN_3
#define FMU_CAP2_GPIO_Port GPIOB
#define SPEKTRUM_PWR_Pin GPIO_PIN_4
#define SPEKTRUM_PWR_GPIO_Port GPIOE
#define I2C1_SDA_Pin GPIO_PIN_9
#define I2C1_SDA_GPIO_Port GPIOB
#define USART1_RX_Pin GPIO_PIN_7
#define USART1_RX_GPIO_Port GPIOB
#define USART1_TX_Pin GPIO_PIN_6
#define USART1_TX_GPIO_Port GPIOB
#define USART6_CTS_Pin GPIO_PIN_15
#define USART6_CTS_GPIO_Port GPIOG
#define BMI055_A_CS_Pin GPIO_PIN_10
#define BMI055_A_CS_GPIO_Port GPIOG
#define USART2_RX_Pin GPIO_PIN_6
#define USART2_RX_GPIO_Port GPIOD
#define UART4_RX_Pin GPIO_PIN_0
#define UART4_RX_GPIO_Port GPIOD
#define USART6_RX_Pin GPIO_PIN_9
#define USART6_RX_GPIO_Port GPIOG
#define USART2_TX_Pin GPIO_PIN_5
#define USART2_TX_GPIO_Port GPIOD
#define UART4_TX_Pin GPIO_PIN_1
#define UART4_TX_GPIO_Port GPIOD
#define DRDY5_BMI055_GYRO_Pin GPIO_PIN_13
#define DRDY5_BMI055_GYRO_GPIO_Port GPIOC
#define USART2_RTS_Pin GPIO_PIN_4
#define USART2_RTS_GPIO_Port GPIOD
#define USART2_CTS_Pin GPIO_PIN_3
#define USART2_CTS_GPIO_Port GPIOD
#define FMU_SPARE_4_Pin GPIO_PIN_0
#define FMU_SPARE_4_GPIO_Port GPIOI
#define LED_BLUE_Pin GPIO_PIN_7
#define LED_BLUE_GPIO_Port GPIOC
#define ICM20689_CS_Pin GPIO_PIN_2
#define ICM20689_CS_GPIO_Port GPIOF
#define USART6_RTS_Pin GPIO_PIN_8
#define USART6_RTS_GPIO_Port GPIOG
#define LED_GREEN_Pin GPIO_PIN_6
#define LED_GREEN_GPIO_Port GPIOC
#define ICM20602_CS_Pin GPIO_PIN_3
#define ICM20602_CS_GPIO_Port GPIOF
#define BMI055_G_CS_Pin GPIO_PIN_4
#define BMI055_G_CS_GPIO_Port GPIOF
#define VDD_3V3_SD_CARD_EN_Pin GPIO_PIN_7
#define VDD_3V3_SD_CARD_EN_GPIO_Port GPIOG
#define VDD_5V_WIFI_EN_Pin GPIO_PIN_6
#define VDD_5V_WIFI_EN_GPIO_Port GPIOG
#define UART7_RX_Pin GPIO_PIN_6
#define UART7_RX_GPIO_Port GPIOF
#define FRAM_CS_Pin GPIO_PIN_5
#define FRAM_CS_GPIO_Port GPIOF
#define LED_B1_Pin GPIO_PIN_12
#define LED_B1_GPIO_Port GPIOH
#define VDD_5V_RC_EN_Pin GPIO_PIN_5
#define VDD_5V_RC_EN_GPIO_Port GPIOG
#define nVDD_5V_PERIPH_EN_Pin GPIO_PIN_4
#define nVDD_5V_PERIPH_EN_GPIO_Port GPIOG
#define VBUS_nVALID_Pin GPIO_PIN_3
#define VBUS_nVALID_GPIO_Port GPIOG
#define MS5611_CS_Pin GPIO_PIN_10
#define MS5611_CS_GPIO_Port GPIOF
#define LED_G1_Pin GPIO_PIN_11
#define LED_G1_GPIO_Port GPIOH
#define LED_R1_Pin GPIO_PIN_10
#define LED_R1_GPIO_Port GPIOH
#define DRDY7_EXTERNAL1_Pin GPIO_PIN_15
#define DRDY7_EXTERNAL1_GPIO_Port GPIOD
#define VDD_BRICK2_nVALID_Pin GPIO_PIN_2
#define VDD_BRICK2_nVALID_GPIO_Port GPIOG
#define VDD_5V_SENS_Pin GPIO_PIN_0
#define VDD_5V_SENS_GPIO_Port GPIOC
#define SCALED_V3V3_Pin GPIO_PIN_1
#define SCALED_V3V3_GPIO_Port GPIOC
#define VDD_BRICK_nVALID_Pin GPIO_PIN_1
#define VDD_BRICK_nVALID_GPIO_Port GPIOG
#define BATT_CURRENT_SENS_Pin GPIO_PIN_1
#define BATT_CURRENT_SENS_GPIO_Port GPIOA
#define BATT_VOLTAGE_SENS_Pin GPIO_PIN_0
#define BATT_VOLTAGE_SENS_GPIO_Port GPIOA
#define SPARE2_ADC1_Pin GPIO_PIN_4
#define SPARE2_ADC1_GPIO_Port GPIOA
#define SPARE1_ADC1_Pin GPIO_PIN_4
#define SPARE1_ADC1_GPIO_Port GPIOC
#define VDD_5V_HIPOWER_nOC_Pin GPIO_PIN_13
#define VDD_5V_HIPOWER_nOC_GPIO_Port GPIOF
#define USART3_RTS_Pin GPIO_PIN_12
#define USART3_RTS_GPIO_Port GPIOD
#define USART3_CTS_Pin GPIO_PIN_11
#define USART3_CTS_GPIO_Port GPIOD
#define DRDY6_BMI055_ACC_Pin GPIO_PIN_10
#define DRDY6_BMI055_ACC_GPIO_Port GPIOD
#define BATT2_VOLTAGE_SENS_Pin GPIO_PIN_2
#define BATT2_VOLTAGE_SENS_GPIO_Port GPIOA
#define FMU_CAP1_Pin GPIO_PIN_5
#define FMU_CAP1_GPIO_Port GPIOA
#define DRDY4_ICM20602_Pin GPIO_PIN_5
#define DRDY4_ICM20602_GPIO_Port GPIOC
#define nVDD_5V_HIPOWER_EN_Pin GPIO_PIN_12
#define nVDD_5V_HIPOWER_EN_GPIO_Port GPIOF
#define UART7_TX_Pin GPIO_PIN_8
#define UART7_TX_GPIO_Port GPIOE
#define USART3_RX_Pin GPIO_PIN_9
#define USART3_RX_GPIO_Port GPIOD
#define PD8_USART3_TX_USART3_Pin GPIO_PIN_8
#define PD8_USART3_TX_USART3_GPIO_Port GPIOD
#define BATT2_CURRENT_SENS_Pin GPIO_PIN_3
#define BATT2_CURRENT_SENS_GPIO_Port GPIOA
#define HEATER_EN_Pin GPIO_PIN_7
#define HEATER_EN_GPIO_Port GPIOA
#define LED_RED_Pin GPIO_PIN_1
#define LED_RED_GPIO_Port GPIOB
#define RSSI_IN_Pin GPIO_PIN_0
#define RSSI_IN_GPIO_Port GPIOB
#define DRDY8_NC_Pin GPIO_PIN_7
#define DRDY8_NC_GPIO_Port GPIOE
#define VDD_5V_PERIPH_nOC_Pin GPIO_PIN_15
#define VDD_5V_PERIPH_nOC_GPIO_Port GPIOE
#define nSPI5_RESET_EXTERNAL1_Pin GPIO_PIN_10
#define nSPI5_RESET_EXTERNAL1_GPIO_Port GPIOB
#define FMU_CAP3_Pin GPIO_PIN_11
#define FMU_CAP3_GPIO_Port GPIOB
#define DRDY2_BMI055_GYRO_Pin GPIO_PIN_14
#define DRDY2_BMI055_GYRO_GPIO_Port GPIOB
#define DRDY3_BMI055_ACC_Pin GPIO_PIN_15
#define DRDY3_BMI055_ACC_GPIO_Port GPIOB
/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
